import config from '@/config'
import http from '@/utils/request'

export default {
	list: {
		url: `${config.API_URL}/staff/list`,
		name: '用户列表',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	adds: {
		url: `${config.API_URL}/basic/staff/adds`,
		name: '新增用户',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	}
}
